@tool
@icon("icons/atomic_state.svg")
class_name GameState
extends AtomicState

#region 属性
@export var game_state:GameEnum.GameState = GameEnum.GameState.Null
var view_manager:ViewManager:
	get:
		if not view_manager:
			view_manager = GameUISystem.view_manager
		return view_manager
#endregion
#region 字段
#endregion
#region 信号
#endregion

#region 基类方法
func state_init(fsm:FSM):
	super.state_init(fsm)
func on_enter(from_state:State):
	super.on_enter(from_state)
func on_update(delta:float):
	super.on_update(delta)
func on_physics_update(delta:float):
	super.on_physics_update(delta)
func on_exit(to_state:State):
	super.on_exit(to_state)
func get_state_status() -> GameEnum.StateStatus:
	return super.get_state_status()
func translate_state(st_state:State,to_state:State,st_state_path:Array[State],to_state_path:Array[State]):
	super.translate_state(st_state,to_state,st_state_path,to_state_path)
func get_game_state() -> GameEnum.GameState:
	return game_state
#endregion
#region 公共方法
#endregion
#region 私有方法
#endregion
#region 生命周期函数
#endregion
